<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" th:src="@{https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js}"></script>
    <link th:href="@{https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/default.css}" rel="stylesheet"/>
    <link rel="icon" th:href="@{/images/favicon.ico}" type="image/x-icon"/>
    <meta charset="UTF-8"/>
    <title>问答系统</title>
</head>

<body>
<div class="contentDiv">

    <h1 style="text-align:center">问答系统</h1>

    <hr/>
    <hr/>
    <hr/>

    <div>
        <form th:action="@{/iqa/ask}" method="post" class="form-horizontal">

            <div class="form-group" style="text-align: center">
                <label for="question_id" style="font-size: 15px">请输入问题</label>
                <div>
                    <textarea style="width: 600px" id="question_id" rows="3" name="question"
                              th:value="${question.question}" th:field="*{question.question}"></textarea>
                </div>
            </div>

            <div style="text-align:center" class="form-group">
                <div>
                    <input class="btn btn-primary" type="submit" value="提交"/>
                </div>
            </div>
        </form>
    </div>

    <div id="root">
    </div>

</div>
</body>
</html>